package com.javasm.service.B2cOrderService;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.Page;
import com.javasm.common.page.PageResult;
import com.javasm.domin.criteria.orderCriteria.OrderGoodsCriteria;
import com.javasm.domin.entity.orderEntity.B2cOrderGoods;
import com.javasm.domin.vo.orderVo.OrderGoodVo;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lys
 * @since 2021-11-20
 */
public interface OrderGoodsService extends IService<B2cOrderGoods> {

    //条件查询
    List<B2cOrderGoods> findGoodByOrderId(OrderGoodsCriteria orderGoodsCriteria);

    /**
     * 订单统计
     *
     * @param orderGoodsCriteria
     * @return
     */
    PageResult<OrderGoodVo> findPage(OrderGoodsCriteria orderGoodsCriteria);

    /**
     * 根据多个订单id查询
     * @param
     * @return
     */
    List<OrderGoodVo> findOrderGoodByOrderIdList(OrderGoodsCriteria orderGoodsCriteria);

    /**
     * 销量统计
     * @param queryWrapper
     * @return
     */
    PageResult<OrderGoodVo> orderGoodsTotal(OrderGoodsCriteria orderGoodsCriteria);


}
